Forge Authentication
Agentty uses plain Git for branch publishing and then uses the forge CLI for pull-request or merge-request actions.
That split matters:
palways runsgit pushfirst.- GitHub and GitLab CLI login only covers the forge CLI.
- HTTPS remotes still need Git transport credentials when Git performs the push.
For the session-view publish flow, see Workflow.
GitHub🔗
Use this setup when the repository remote is on GitHub.
- Run
gh auth login. - Choose the target host such as
github.com. - Pick the Git protocol Agentty should use for branch publishing:
httpsorssh. - If you picked
https, rungh auth setup-gitafter login so Git can useghas a credential helper for branch pushes. - Verify the setup with
gh auth status.
With that setup:
ppushes through Git and then usesghto create or refresh the pull request.
GitLab🔗
Use this setup when the repository remote is on GitLab.
- Run
glab auth login. - Choose the target host such as
gitlab.comor your self-hosted hostname. - Pick the Git protocol Agentty should use for branch publishing:
httpsorssh. - Verify the CLI login with
glab auth status --hostname <hostname>. - If you picked
https, also configure Git itself for HTTPS pushes: either a credential helper or a personal access token that Git can use whengit pushprompts for credentials.
With that setup:
puses plaingit pushfirst, then usesglabto create or refresh the merge request.
If glab auth status says you are authenticated but Agentty still reports a push-authentication failure, the missing piece is Git HTTPS credentials rather than glab authentication.